<?php
	include('config/params.php');

	$objeto = '';
	
	$conexion = mysql_connect($servidor,$usuario,$clave);
	mysql_select_db($bd,$conexion);

	$peticion= mysql_query("SELECT id FROM articulos WHERE existencias >=1 ORDER BY RAND() LIMIT 1");

	while ($fila = mysql_fetch_array($peticion)){


				$objeto = $fila['id'];


		
	}

	

			echo "

			



				<html>

					<head>

						<meta http-equiv='REFRESH' content='0;url=principal.php?filtro=nada&objsel=ficha&id=".$objeto."'>

					</head>

				</html>

			

			";
	
			?>